package com.cdtu.service;

import com.cdtu.entity.News;
import com.cdtu.entity.NewsColumn;
import com.github.pagehelper.PageInfo;

import java.text.ParseException;
import java.util.List;
import java.util.Map;


public interface NewsService {
    PageInfo<News> getNewsTitle(Integer pageNum, Integer pageSize,Integer columnId ,String source ,String news_date) throws ParseException;


    List<Map<String,Object>> getYearList();

    List<String> getSourceList();

    List<Map<String,Object>> getColumnList();

    Map<String, Object> getNewsById(Integer newsId);

    int deleteById(Integer newsId);

    List<NewsColumn> getColumnListName();

    int add(News news);

    News getUpdateNewsById(Integer newsId);

    int update(News news);
}
